class CreateRegions < ActiveRecord::Migration
  def self.up
    create_table :regions do |t|
      t.integer :book_id
      t.integer :page_id
      t.float :x
      t.float :y
      t.float :width
      t.float :height
      t.string :region_type
      t.string :extra_data

      t.timestamps
    end
  end

  def self.down
    drop_table :regions
  end
end
